package com.shield.framework.security.token;

import com.shield.framework.security.auth.AuthUser;
import com.shield.framework.vo.TokenVo;

import javax.servlet.http.HttpServletRequest;
import java.time.Duration;

/**
 * 令牌存储
 */
public interface ShieldTokenStore {

    TokenVo get(String token);

    void save(HttpServletRequest request, AuthUser authUser, String token, Duration expireTime);
}
